<?php
/**
 * Project: AIGC
 * Author: moufer <moufer@163.com>
 * Date: 2024/7/22 00:26
 */

namespace module\ai\library\channel\completion;

use module\ai\library\channel\abstract\Completion;

class ErrorCompletion extends Completion
{

    /**
     * @inheritDoc
     */
    protected function rawToData(): void
    {
        $this->error($this->rawData['message'], $this->rawData['code']);
    }
}